#include<stdio.h>
#include<string.h>

struct Student
{
    int num;
    char name[10];
    float score;
 } ;
 
 int main()
 {
     struct Student student1,student2;
     scanf("%d %s %f",&student1.num ,student1.name ,&student1.score );
     scanf("%d %s %f",&student2.num ,student2.name ,&student2.score );
     printf("The higher score is:\n");
     if(student1.score >student2.score )
     {
         printf("num=%d\nname=%s\nscore=%f\n",student1.num ,student1.name ,student1.score );
     }
     if(student1.score <student2.score )
     {
         printf("num=%d\nname=%s\nscore=%f\n",student2.num ,student2.name ,student2.score );
     }
 }
